package com.gr3g.dev.legacy;

import com.jme3.app.SimpleApplication;
import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
import com.jme3.renderer.RenderManager;
import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Box;

/** Hello world! */
public final class App extends SimpleApplication {

    public static void main(final String[] args) {
        final App app = new App();
        app.start();
    }

    @Override
    public void simpleInitApp() {
        final Box b = new Box(1, 1, 1);
        final Geometry geom = new Geometry("Box", b);

        final Material mat = new Material(this.assetManager,
                "Common/MatDefs/Misc/Unshaded.j3md");
        mat.setColor("Color", ColorRGBA.Blue);
        geom.setMaterial(mat);

        this.rootNode.attachChild(geom);
    }

    @Override
    public void simpleUpdate(final float tpf) {
        // TODO: add update code
    }

    @Override
    public void simpleRender(final RenderManager rm) {
        // TODO: add render code
    }
}
